home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 62 / Quick PC 62.iso / I386 / IIS5_01.CAB / IIS_Expire_VBScript.asp < prev    next >
Encoding:
Text File  |  1999-06-03  |  1.1 KB  |  43 lines

  1. <%@ LANGUAGE = VBScript %>
  2. <% Option Explicit %>
  3.  
  4. <!*************************
  5. This sample is provided for educational purposes only. It is not intended to be 
  6. used in a production environment, has not been tested in a production environment, 
  7. and Microsoft will not provide technical support for it. 
  8. *************************>
  9.  
  10. <%
  11.     'Because the Expiration Information is sent in the HTTP
  12.     'headers, it must be set before any HTML is transmitted.
  13.  
  14.     'Ensure that this page expires within 10 minutes...    
  15.  
  16.     Response.Expires = 10
  17.     
  18.     '...or before Jan 1, 2001, which ever comes first.
  19.  
  20.     Response.ExpiresAbsolute = "Jan 1, 2001 13:30:15"     
  21. %>
  22.  
  23. <HTML>
  24.     <HEAD>
  25.         <TITLE>Setting Expiration Information</TITLE>
  26.     </HEAD>
  27.  
  28.     <BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
  29.  
  30.         <!-- Display header. -->
  31.  
  32.         <FONT SIZE="4" FACE="ARIAL, HELVETICA">
  33.         <B>Setting Expiration Information</B></FONT><BR>
  34.       
  35.         <HR SIZE="1" COLOR="#000000">
  36.  
  37.         <P>This page will expire from your browser's cache in
  38.         10 minutes.  If it is after Jan. 1, 2001 (1:30 PM), then
  39.         the page will expire from the cache immediately.</P>
  40.         
  41.     </BODY>
  42. </HTML>
  43.